package com.itsu.vtalk.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author suben
 * @createtime 2020/6/20 16:01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_message")
public class Message implements Serializable {

    private static final long serialVersionUID = -708770588622326036L;

    @TableId("message_id")
    private String messageId;

    @TableField("content")
    private String content;

    @TableField("from_user_id")
    private String fromUserId;

    @TableField("to_user_id")
    private String toUserId;

    @TableField("create_time")
    private Date createTime;
}
